package day03;
//字符串连接运算符
public class OperDemo05 {
    public static void main(String[] args) {
        //5）字符串连接运算符：+
        int age = 24;
        System.out.println("age");
        System.out.println(age);
        System.out.println("age="+age);
        System.out.println("我今年"+age+"岁了");

        String name = "JQ";
        System.out.println("大家好，我叫"+name);
        System.out.println("大家好，我叫"+name+"我今年"+age+"岁了");

        System.out.println(10+20+""+30); //3030----------String
        System.out.println(""+10+20+30); //102030--------String
        System.out.println(10+20+30+""); //60------------String
    }
}
